MyDAC

TCustomMyConnection Members

TCustomMyConnection class overview.

Properties

Name Description

ClientVersion

Contains the version of the MySQL Client library.

ConnectDialog (inherited from TCustomDAConnection)

Allows to link a TCustomConnectDialog component.

ConnectionTimeout

Used to specify the amount of time to attempt to establish a connection.

ConnectString (inherited from TCustomDAConnection)

Used to specify the connection information, such as: UserName, Password, Server, etc.

ConvertEOL (inherited from TCustomDAConnection)

Allows customizing line breaks in string fields and parameters.

Database

Used to specify a database name that is a default source of data for SQL queries once a connection is established.

InTransaction (inherited from TCustomDAConnection)

Indicates whether the transaction is active.

IsolationLevel

Used to specify extent to which all outside transactions interfere with subsequent transactions of current connection.

LastWarningCount

Used to get the number of warnings resulting from the execution of the most recent statement.

LoginPrompt (inherited from TCustomDAConnection)

Specifies whether a login dialog appears immediately before opening a new connection.

Options

Specifies the behaviour of the TMyConnectionOptions object.

Password (inherited from TCustomDAConnection)

Serves to supply a password for login.

Pooling (inherited from TCustomDAConnection)

Enables or disables using connection pool.

PoolingOptions (inherited from TCustomDAConnection)

Specifies the behaviour of connection pool.

Server (inherited from TCustomDAConnection)

Serves to supply the server name for login.

ServerVersion

Holds the version of MySQL server.

ThreadId

Used to return the thread ID of the current connection.

Username (inherited from TCustomDAConnection)

Used to supply a user name for login.

Methods

Name Description

ApplyUpdates (inherited from TCustomDAConnection)

Overloaded. Applies changes in datasets.

AssignConnect

Shares database connection between the TCustomMyConnection components.

Commit (inherited from TCustomDAConnection)

Commits current transaction.

Connect (inherited from TCustomDAConnection)

Establishes a connection to the server.

CreateDataSet

Returns a new instance of TCustomMyDataSet class and associates it with this connection object.

CreateSQL (inherited from TCustomDAConnection)

Creates a component for queries execution.

Disconnect (inherited from TCustomDAConnection)

Performs disconnect.

ExecProc (inherited from TCustomDAConnection)

Allows to execute stored procedure or function providing its name and parameters.

ExecProcEx (inherited from TCustomDAConnection)

Allows to execute a stored procedure or function.

ExecSQL

Executes any SQL statement outside TMyQuery or TMyCommand components.

ExecSQLEx (inherited from TCustomDAConnection)

Executes any SQL statement outside the TQuery or TSQL components.

GetCharsetNames

Populates a string list with the names of available charsets.

GetDatabaseNames (inherited from TCustomDAConnection)

Returns a database list from the server.

GetExecuteInfo

Returns the result of the last query execution.

GetKeyFieldNames (inherited from TCustomDAConnection)

Provides a list of available key field names.

GetStoredProcNames (inherited from TCustomDAConnection)

Returns a list of stored procedures from the server.

GetTableNames (inherited from TCustomDAConnection)

Provides a list of available tables names.

GetTriggerNames

Returns a list of triggers from the server.

MonitorMessage (inherited from TCustomDAConnection)

Sends a specified message through the TCustomDASQLMonitor component.

PerformConnect (inherited from TCustomDAConnection)

Establishes a connection to the server regardless of the LoginPrompt property.

Ping (inherited from TCustomDAConnection)

Used to check state of connection to the server.

ReleaseSavepoint

Releases the specified savepoint without affecting any work that has been performed after its creation.

RemoveFromPool (inherited from TCustomDAConnection)

Marks the connection that should not be returned to the pool after disconnect.

Rollback (inherited from TCustomDAConnection)

Discards all current data changes and ends transaction.

RollbackToSavepoint

Cancels all updates for the current transaction.

Savepoint

Defines a point in the transaction to which you can roll back later.

StartTransaction (inherited from TCustomDAConnection)

Begins a new user transaction.

Events

Name Description

OnConnectionLost (inherited from TCustomDAConnection)

This event occurs when connection was lost.

OnError (inherited from TCustomDAConnection)

This event occurs when an error has arisen in the connection.
© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback